package io.github.talelin.latticy.execl.oms.Product;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import io.github.talelin.latticy.execl.oms.BooleanConverter;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName：ProductExecl
 * @Author: ljj
 * @Date: 2022/5/10 16:23
 */
@Getter
@Setter
@EqualsAndHashCode
public class ProductExecl {

    @ExcelProperty(value = "SKU")
    private String sku;

    @ExcelProperty(value = "Name")
    private String name;

    @ExcelProperty(value = "eNname")
    private String enName;

    @ExcelProperty(value = "AlarmThreshold")
    private Integer alarmThreshold;

    @ExcelProperty(value = "Length")
    private BigDecimal length;

    @ExcelProperty(value = "Width")
    private BigDecimal width;

    @ExcelProperty(value = "Height")
    private BigDecimal height;

    @ExcelProperty(value = "LwhType")
    private Integer lwhType;

    @ExcelProperty(value = "Weight")
    private Integer weight;

    @ExcelProperty(value = "WeightType")
    private Integer weightType;

    @ExcelProperty(value = "Brand")
    private String brand;

    @ExcelProperty(value = "PurchaseCost")
    private BigDecimal purchaseCost;

    @ExcelProperty(value = "PackagType")
    private Integer packagType;

    @ExcelProperty(value = "SinglePackagNum")
    private Integer singlePackagNum;

    @ExcelProperty(value = "PackagMaterialId")
    private Long packagMaterialId;

    @ExcelProperty(value = "CustomsCode")
    private String customsCode;

    @ExcelProperty(value = "Origin")
    private String origin;

    @ExcelProperty(value = "Company")
    private String company;

    @ExcelProperty(value = "DeclarePrice")
    private BigDecimal declarePrice;

    @ExcelProperty(value = "CustomsDesc")
    private String customsDesc;

    @ExcelProperty(value = "IsBattery", converter = BooleanConverter.class)
    private Boolean isBattery;

    @ExcelProperty(value = "goodsType")
    private Integer goodsType;

    @ExcelProperty(value = "isLiquid",converter = BooleanConverter.class)
    private Boolean isLiquid;

    @ExcelProperty(value = "isMagnetized",converter = BooleanConverter.class)
    private Boolean isMagnetized;

     @ExcelProperty(value = "SHOPS")
     private String shops;

    @ExcelProperty(value = "DESC")
    private String desc;

    @ExcelProperty(value = "Client")
    private String creatorCode;

     @ExcelProperty(value = "BARCODES")
     private String barcode;

    @ExcelProperty(value = "STATUS", converter = StatusConverter.class)
    private Integer status;

    @DateTimeFormat("yyyy-MM-dd HH:mm:ss")
    @ExcelProperty(value = "CreateDate")
    private Date createDate;

    @ExcelProperty(value = "CategoryId")
    private Long categoryId;
}
